//
//  DestinationNodeCCell.m
//  ImGuider
//
//  Created by 李陆涛 on 2017/12/26.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import "DestinationNodeCCell.h"

@interface DestinationNodeCCell ()
@property (weak, nonatomic) IBOutlet UIImageView *desImageView;
@property (weak, nonatomic) IBOutlet UILabel *cityNameLabel;
@property (weak, nonatomic) IBOutlet UIView *mengbanView;

@end

@implementation DestinationNodeCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.mengbanView.backgroundColor = kMengBanColor;
}

- (void)setModel:(City *)model {
    
    _model = model;
    
    [self.desImageView setImageURL:[NSURL URLWithString:model.pictureArray.firstObject] placeholderImage:kPlaceholderRec];
    self.cityNameLabel.text = model.city;
}

- (void)layoutSubviews {
    [self.desImageView setImageURL:[NSURL URLWithString:self.model.pictureArray.firstObject] placeholderImage:kPlaceholderRec];
}
@end

